package com.chatdating.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("likes")
public class Like {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long postId;      // 关联的帖子ID
    private Integer userId;   // 点赞用户ID

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
